package com.zc.demo.service;

import com.zc.demo.mapper.UserMapper;
import com.zc.demo.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;

    public UserInfo queryByName(String name){
        return userMapper.queryUserByName(name);
    }
}
